/**
 * @ author: 汪孟苹
 */
define(["jquery","bbcare","comm/datatable/datatable",
    "bch/app/patientManager/nearFollowupUser.servers",
    "bch/app/patientManager/nearFollowupUser.ui"],function($,$bb,$datatable,$servers,$ui) {
    var nearFollowupUser = {};

    /**
     * 请求队列成功后的回调函数
     */
    var ajaxQueueCallBack = function(data){
        $ui.queue({
            "id": "queue",
            "list": data.queueList
        });
    }

    nearFollowupUser.init = function(){
        $servers.ajaxQueue(ajaxQueueCallBack);    // 加载队列
        var id = $(".layout-bottom table").attr("id");
        $datatable.init({
            "id": id,
            "options": $servers.getOptions()
        });
    }

    return nearFollowupUser;
});